import snowflake.client
"""
# 链接服务端并初始化一个pysnowflake客户端
# https://codingnote.cc/zh-hk/p/183484/
# 生成一个全局唯一的ID（在MySQL中可以用BIGINT UNSIGNED对应）
# https://blog.csdn.net/nklinsirui/article/details/104629100
"""
host = 'localhost'
port = 8910
snowflake.client.setup(host, port)

# pip install pysnowflake
# 运行  snowflake_start_server

def getdistruteid():
    return snowflake.client.get_guid()


